libtomcrypt = Library('tomcrypt', Split('''
	oldrsa.c
	randseed.c
	src/ciphers/aes/aes_enc.o
	src/ciphers/aes/aes.c
	src/misc/base64/base64_decode.c
	src/misc/base64/base64_encode.c
	src/hashes/helper/hash_file.c
	src/hashes/helper/hash_filehandle.c
	src/hashes/helper/hash_memory.c
	src/hashes/helper/hash_memory_multi.c
	src/hashes/md5.c
	src/hashes/sha1.c
	src/mac/hmac/hmac_done.c
	src/mac/hmac/hmac_file.c
	src/mac/hmac/hmac_init.c
	src/mac/hmac/hmac_memory.c
	src/mac/hmac/hmac_memory_multi.c
	src/mac/hmac/hmac_process.c
	src/mac/hmac/hmac_test.c
	src/math/gmp_desc.c
	src/math/ltm_desc.c
	src/math/multi.c
	src/math/rand_prime.c
	src/math/tfm_desc.c
	src/misc/burn_stack.c
	src/misc/crypt/crypt.c
	src/misc/crypt/crypt_argchk.c
	src/misc/crypt/crypt_cipher_descriptor.c
	src/misc/crypt/crypt_cipher_is_valid.c
	src/misc/crypt/crypt_find_cipher.c
	src/misc/crypt/crypt_find_cipher_any.c
	src/misc/crypt/crypt_find_cipher_id.c
	src/misc/crypt/crypt_find_hash.c
	src/misc/crypt/crypt_find_hash_any.c
	src/misc/crypt/crypt_find_hash_id.c
	src/misc/crypt/crypt_find_hash_oid.c
	src/misc/crypt/crypt_find_prng.c
	src/misc/crypt/crypt_hash_descriptor.c
	src/misc/crypt/crypt_hash_is_valid.c
	src/misc/crypt/crypt_ltc_mp_descriptor.c
	src/misc/crypt/crypt_prng_descriptor.c
	src/misc/crypt/crypt_prng_is_valid.c
	src/misc/crypt/crypt_register_cipher.c
	src/misc/crypt/crypt_register_hash.c
	src/misc/crypt/crypt_register_prng.c
	src/misc/crypt/crypt_unregister_cipher.c
	src/misc/crypt/crypt_unregister_hash.c
	src/misc/crypt/crypt_unregister_prng.c
	src/misc/error_to_string.c
	src/misc/pkcs5/pkcs_5_1.c
	src/misc/pkcs5/pkcs_5_2.c
	src/misc/zeromem.c
	src/modes/cfb/cfb_decrypt.c
	src/modes/cfb/cfb_done.c
	src/modes/cfb/cfb_encrypt.c
	src/modes/cfb/cfb_getiv.c
	src/modes/cfb/cfb_setiv.c
	src/modes/cfb/cfb_start.c
	src/modes/ctr/ctr_decrypt.c
	src/modes/ctr/ctr_done.c
	src/modes/ctr/ctr_encrypt.c
	src/modes/ctr/ctr_getiv.c
	src/modes/ctr/ctr_setiv.c
	src/modes/ctr/ctr_start.c
	src/pk/asn1/der/bit/der_decode_bit_string.c
	src/pk/asn1/der/bit/der_encode_bit_string.c
	src/pk/asn1/der/bit/der_length_bit_string.c
	src/pk/asn1/der/boolean/der_decode_boolean.c
	src/pk/asn1/der/boolean/der_encode_boolean.c
	src/pk/asn1/der/boolean/der_length_boolean.c
	src/pk/asn1/der/choice/der_decode_choice.c
	src/pk/asn1/der/ia5/der_decode_ia5_string.c
	src/pk/asn1/der/ia5/der_encode_ia5_string.c
	src/pk/asn1/der/ia5/der_length_ia5_string.c
	src/pk/asn1/der/integer/der_decode_integer.c
	src/pk/asn1/der/integer/der_encode_integer.c
	src/pk/asn1/der/integer/der_length_integer.c
	src/pk/asn1/der/object_identifier/der_decode_object_identifier.c
	src/pk/asn1/der/object_identifier/der_encode_object_identifier.c
	src/pk/asn1/der/object_identifier/der_length_object_identifier.c
	src/pk/asn1/der/octet/der_decode_octet_string.c
	src/pk/asn1/der/octet/der_encode_octet_string.c
	src/pk/asn1/der/octet/der_length_octet_string.c
	src/pk/asn1/der/printable_string/der_decode_printable_string.c
	src/pk/asn1/der/printable_string/der_encode_printable_string.c
	src/pk/asn1/der/printable_string/der_length_printable_string.c
	src/pk/asn1/der/sequence/der_decode_sequence_ex.c
	src/pk/asn1/der/sequence/der_decode_sequence_flexi.c
	src/pk/asn1/der/sequence/der_decode_sequence_multi.c
	src/pk/asn1/der/sequence/der_encode_sequence_ex.c
	src/pk/asn1/der/sequence/der_encode_sequence_multi.c
	src/pk/asn1/der/sequence/der_length_sequence.c
	src/pk/asn1/der/sequence/der_sequence_free.c
	src/pk/asn1/der/set/der_encode_set.c
	src/pk/asn1/der/set/der_encode_setof.c
	src/pk/asn1/der/short_integer/der_decode_short_integer.c
	src/pk/asn1/der/short_integer/der_encode_short_integer.c
	src/pk/asn1/der/short_integer/der_length_short_integer.c
	src/pk/asn1/der/utctime/der_decode_utctime.c
	src/pk/asn1/der/utctime/der_encode_utctime.c
	src/pk/asn1/der/utctime/der_length_utctime.c
	src/pk/pkcs1/pkcs_1_i2osp.c
	src/pk/pkcs1/pkcs_1_mgf1.c
	src/pk/pkcs1/pkcs_1_oaep_decode.c
	src/pk/pkcs1/pkcs_1_oaep_encode.c
	src/pk/pkcs1/pkcs_1_os2ip.c
	src/pk/pkcs1/pkcs_1_pss_decode.c
	src/pk/pkcs1/pkcs_1_pss_encode.c
	src/pk/rsa/rsa_decrypt_key.c
	src/pk/rsa/rsa_encrypt_key.c
	src/pk/rsa/rsa_export.c
	src/pk/rsa/rsa_exptmod.c
	src/pk/rsa/rsa_free.c
	src/pk/rsa/rsa_import.c
	src/pk/rsa/rsa_make_key.c
	src/pk/rsa/rsa_sign_hash.c
	src/pk/rsa/rsa_verify_hash.c
	src/prngs/rng_get_bytes.c
	src/prngs/rng_make_prng.c
	src/prngs/sprng.c
	src/prngs/yarrow.c'''),
	CPPFLAGS="$CPPFLAGS -O -DLTC_SOURCE -DTCL_NOROLC",
	CPPPATH=["src/headers", "../tommath"])

Object("src/ciphers/aes/aes_enc.o", "src/ciphers/aes/aes.c",
	CPPFLAGS="$CPPFLAGS -O -DENCRYPT_ONLY",
	CPPPATH=["src/headers", "../tommath"])				

Return("libtomcrypt")
